package com.googlecode.gxtmvp.rest.client;

import java.util.List;

public class CollectionResource<D> extends Resource<List<D>> {
  
  public CollectionResource(final String uri) {
    super(uri);
  }
  
  public <C> RestCommand<D, C> post(final D data, final Codec<String, C, D> codec, final C config) {
    return new RestCommand<D, C>("POST", uri, data, codec, config);
  }
  
}
